package com.cjh.wechat.core.controller;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cjh.wechat.commom.vo.ResponseVo;
import com.cjh.wechat.core.service.InitService;

@Controller
@RequestMapping("/response")
public class ResponseController
{
    @Resource
    private InitService initService;
    
    @ResponseBody
    @RequestMapping(value = "/init", method = RequestMethod.GET)
    private ResponseVo init(String id)
    {
        System.out.println("获取id为" + id + "的初始信息");
        ResponseVo initVo = initService.getInitVo(id);
        return initVo;
    }
}
